home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / util307.arc / DOS2A.TXT < prev    next >
Text File  |  1987-03-04  |  2KB  |  57 lines

  1. Here's some more information on DOS 2.0 interrupts:
  2.  
  3.     The DOS critical section flag may be interrogated from
  4.     within an interrupt handler before requesting DOS
  5.     services:
  6.  
  7.       MOV AH,34h
  8.       INT 21h
  9.  
  10.     returns in ES:BX the address of a byte indicating (when
  11.     set) that DOS is in an uninterruptible state, and no DOS
  12.     calls should be made.
  13.  
  14.  
  15.  
  16. To access DOS' PRINT capabilities:
  17.  
  18.       MOV AH,func
  19.       INT 2Fh
  20.  
  21.      where:
  22.  
  23.       AH = 0    adds the file specified by DS:DX to the
  24.             print queue.  DS:DX must point to valid
  25.             opened FCB.
  26.  
  27.       AH = 1    cancels the file indicated by DS:DX.
  28.             DS:DX must point to an FCB, opened or
  29.             unopened.  The drive byte must not be 0.
  30.             Wildcards are restricted: ? is okay, *
  31.             isn't.
  32.  
  33.       AH > 1    do nothing.
  34.  
  35.      Return with registers set as follows:
  36.  
  37.             DS,SI,DI,CX preserved, all others destroyed.
  38.             AH = number of files currently in queue.
  39.             AL = for AH=0, return 1 if queue was
  40.              full.    For all other cases, return 0.
  41.             ES:BX = pointer to list of 10 FCBs in
  42.              queue, 38 bytes/FCB.  If the first
  43.              byte of an FCB is -1, that FCB is
  44.              unused.
  45.  
  46.             ES:DX = pointer to currently printing
  47.              FCB.  If the queue is empty, DX = -1.
  48.  
  49.  
  50.  that FCB is
  51.              unused.
  52.  
  53.             ES:DX = pointer to currently printing
  54.              FCB.  If the queue is empty, DX = -1.
  55.  
  56.  
  57.